#ifndef _HTTP_H_
#define _HTTP_H_

#include <stdlib.h>

//get request method
//input param: the whole request header 
//return: the request method string :eg."GET","POST"
char* request(char buffer[]);

//build the response header
//param1: the request resource
//param2: return value, the response header
//return: 1 for succeed 0 for failed
int get_response_head(char*, char[]);

char* fileAddress(char[]);

int get_post_uri(char*, char[]);


int get_request_params(char*);

extern char name[10][128], value[10][128];
#endif 
